package com.zhang.buiness.amaster.workserver.client.fegin;


import com.zhang.buiness.amaster.workserver.client.fallback.ConfigEnvServiceClientFallBackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@FeignClient(name = "amaster-config-env"
       /*, url = "远程服务URL"*/,
        path = "amaster-config-env"
        /*,fallback = ConfigEnvServiceClientFallBack.class*/
       ,fallbackFactory = ConfigEnvServiceClientFallBackFactory.class)
public interface ConfigEnvServiceClient {

    @RequestMapping(value="/env/get/env/all/v1",method = RequestMethod.GET)
    public List<String> getEnvConfig();

    @RequestMapping(value="/env/get/env/all/v1",method = RequestMethod.GET)
    List<String> getcircuitBreakHystrixTest();

    @RequestMapping(value="/env/get/env/all/v1",method = RequestMethod.GET)
    List<String> getBreakHystrixTest();
}
